home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVMFORE.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  1KB  |  28 lines

  1. /*=======================================================*/
  2. /*  TVMFORE.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVforeonly  set whether task can run in background    */
  16. /*   Ralf Brown 4/3/88                                   */
  17. /*=======================================================*/
  18.  
  19. void pascal TVforeonly(OBJECT taskwin,int foreonly)
  20. {
  21.    static BYTE fore_stream[] = { S_MANAGER(1), MS_FOREONLY } ;
  22.    static BYTE back_stream[] = { S_MANAGER(1), MS_NOFOREONLY } ;
  23.  
  24.    TVwin_stream(taskwin, (foreonly) ? fore_stream : back_stream) ;
  25. }
  26.  
  27. /* End of TVMFORE.C */
  28.